盒模型 微筆記


Posted by CodaCoding on 2022-06-11

物件寬高 = 物件本身+padding+border,
margin不影響物件高度,但是在網頁上看會影響!

用margin:0 auto 可以讓區塊水平置中 (等於左右邊加auto)
讓區塊內的文字元素置中 則用 text-align: center


#切版筆記







Related Posts

Terminal 快捷鍵

Terminal 快捷鍵

Vue.js 學習旅程Mile 2 – 環境建置篇

Vue.js 學習旅程Mile 2 – 環境建置篇

[PHP] 物件導向 PHP 入門

[PHP] 物件導向 PHP 入門


Comments